package com.example.car.entity;

import com.example.car.vo.CarDirverVo;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.List;

@Data
public class Order {

    @Id
    private String orderNo;

    @Field("user_id")
    private String userId;

    // 租赁车辆ids  客户可以定多辆车
    @Field("car_dirvers")
    private CarDirverVo carDirver;

    @Field("rent_standard")
    private Double rentStandard;

    // 支付金额
    private Double price;

    // 1日租  2包月
    @Field("rentType")
    private Integer rentType;

    // 1未支付 0已支付
    private Integer status;

    @Field("startTime")
    private String beginTime;

    @Field("endTime")
    private String endDate;
}
